package com.lankystar.sos.dao;

import com.lankystar.sos.model.AuthStatus;
import com.lankystar.sos.model.ResponseStatus;
import com.lankystar.sos.model.SosStatus;
import com.lankystar.sos.model.UserType;

/**
 * 类型、状态接口
 * @author SYX
 *
 */
public interface IStatusDao {

	/**
	 * 添加、删除用户类型
	 * @param record
	 */
	void addUserType(UserType record);
	
	void deleteUserType(UserType record);
	
	UserType selectUserTypeById(Integer userTypeId);
	/**
	 * 添加、删除求救单状态
	 * @param record
	 */
	
	void addSosStatus(SosStatus record);
	
	void deleteSosStatus(SosStatus record);
	
	SosStatus selectSosStatusById(Integer sosStatusId);
	SosStatus selectSosStatusBysoskey(Integer soskey);
	Object[] selectSosStatusBysosId(Integer sosId);
	/**
	 * 添加、删除响应单状态
	 * @param record
	 */
	void addRespStatus(ResponseStatus record);
	
	void deleteRespStatus(ResponseStatus record);
	
	ResponseStatus selectRespStatusById(Integer respStatusId);
	ResponseStatus selectResponseStatusByrespkey(Integer respkey);//根据响应单key值查找响应单状态
	
	/**
	 * 添加、删除认证状态
	 * @param record
	 */
	void addAuthStatus(AuthStatus record);
	
	void deleteAuthStatus(AuthStatus record);
	
	AuthStatus selectAuthStatusById(Integer authStatusId);
	AuthStatus selectAuthStatusByauthkey(Integer authkey);
}
